package com.qk.common.exception;

import com.qk.common.Result;

public class BaseException extends RuntimeException{
    private Result result;

    public BaseException(Result result) {
        super(result.getMsg());
        this.result = result;
    }
    public BaseException(String message) {
        super(message);
    }
    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }
    public BaseException(Throwable cause) {
        super(cause);
    }
    protected BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
    public BaseException() {}
}
